package com.example.svntraining;

import java.util.Random;

import android.app.Activity;
import android.content.Intent;
//import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

public class TyamaActivity extends Activity
{

	public TyamaActivity() 
	{

	}

	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_tyama);
		
		//Intent i=getIntent();
		//i.getExtras();
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) 
	{
		return true;
	}
	
	public void onClick(View view)
	{
		finish();
	}
	
	public void onMoveClick(View view)
	{
		@SuppressWarnings("rawtypes")
		Class[] classes={com.example.svntraining.InaoActivity.class,
					     com.example.svntraining.IwataActivity.class,
					     com.example.svntraining.KomoriActivity.class,
					     com.example.svntraining.KongouActivity.class,
					     com.example.svntraining.MorishitActivity.class,
					     com.example.svntraining.OosakiActivity.class,
					     com.example.svntraining.TmitsuActivity.class,
					     com.example.svntraining.WakaActivity.class,
					     com.example.svntraining.YanoActivity.class}; 
		
		Random rand=new Random();
		Intent i=new Intent(this,classes[rand.nextInt(9)]);
		
		startActivity(i);
	}
}
